package com.bilgeadam.generictypes.program;

import java.util.ArrayList;
import java.util.Scanner;

/**
 *
 * @author Bora SAYINER
 * @since Dec 13, 2014 10:16:15 AM
 * @version 1.0
 */
public class Driver {

	public static void main(String[] args) {
		// Object sayilar = new Object[32];
		// ArrayList sayilar = new ArrayList();
		// sayilar.add(1);
		// sayilar.add(2);
		// sayilar.add(3);
		// sayilar.add("ali");
		// int toplam = 0;
		// for (int i = 0; i < sayilar.size(); i++) {
		// if (i != 3) {
		// int sayi = (int) sayilar.get(i);
		// toplam += sayi;
		// }
		// }
		// System.out.println("Toplam: " + toplam);

		ArrayList<Integer> sayilar = new ArrayList<Integer>();
		sayilar.add(1);
		sayilar.add(2);
		sayilar.add(3);
		int toplam = 0;
		for (Integer i : sayilar) {
			toplam += i;
		}
		System.out.println(toplam);

		ArrayList<Employee> employees = new ArrayList<Employee>();
		Employee employee = new Employee();
		employee.setId(1);
		employee.setFirstName("Ali");
		employee.setLastName("Veli");
		employees.add(employee);
		
		Employee employee2 = employees.get(0);
		
		GenericEmployee<Integer> employee3 = new GenericEmployee<Integer>();
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	}

}
